package com.guonl.entity.gen;

import com.guonl.entity.custom.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据库配置对象 t_gen_dadabase
 *
 * @author guonl
 * @date 2021-04-01
 */
public class GenDadabase extends BaseEntity {

    /**
     * 主键
     */
    private Long dbId;

    /**
     * jdbc连接
     */
    private String jdbcUrl;

    /**
     * 用户名
     */
    private String username;

    private String describe;

    /**
     * 密码
     */
    private String password;

    public void setDbId(Long dbId) {
        this.dbId = dbId;
    }

    public Long getDbId() {
        return dbId;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dbId", getDbId())
                .append("jdbcUrl", getJdbcUrl())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("desc", getDescribe())
                .toString();
    }
}
